<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<title>Cadastro de Movimentacao</title>
	</head>
	
	<body>
		<form action="movimentacao" method="post">
		
			Entrada/Saida: 
			<input type="radio" name="tipoMovimentacao" value="E">Entrada 
			<input type="radio" name="tipoMovimentacao" value="S">Saida<br>
			
			Tipo Despesa
			<SELECT NAME="tipoDespesa">
				<c:forEach var="TipoDespesa" items="${listaTipoDespesa}">
			 		<option value="${TipoDespesa.id}"> ${TipoDespesa.nome}</option>
			 	</c:forEach>     
			</SELECT>
			
			<input type="submit" value="Novo Tipo de Despesa" name="botaoNovoTipoDespesa">
			
			<br>
			
			Despesa
			<SELECT NAME="despesa">
				<c:forEach var="Despesa" items="${listaDespesa}">
			 		<option value="${Despesa.id}"> ${Despesa.nome}</option>
			 	</c:forEach>    
			</SELECT>
			
			<input type="submit" value="Nova Despesa" name="botaoNovaDespesa">
			
			
			<br>
			
			Valor: <input type="number" name="valorDespesa">
			
			Observacao: <input type="text" name="obsDespesa"><br>
			
			Data: <input type="date" name="dataDespesa"><br>
			
			
			<input type="submit" value="Cancela" name="botaoCancelar">
			<input type="submit" value="Salvar" name="botaoSalvar">
		</form>
	</body>
</HTML>